Determines whether a subindex with the specified key selector exists in the collection.

Namespace:  C1.LiveLinq.Indexing
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public bool Contains<TKey>(
	Expression<Func<T, TKey>> keySelector
)
Visual Basic
Public Function Contains(Of TKey) ( _
	keySelector As Expression(Of Func(Of T, TKey)) _
) As Boolean

Parameters

keySelector
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TKey>)>)>>)>)>
Key selector expression of a subindex, see KeySelector.

Type Parameters

TKey
The type of the subindex key.

Return Value

true if a subindex with the specified key selector is found in the collection; otherwise, false.

See Also